package sg.edu.nus.iss.vmcs.entity.simuator.dao.impl;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;


import sg.edu.nus.iss.vmcs.entity.simuator.dao.ISimulatorDrinkBrandDAO;
import sg.edu.nus.iss.vmcs.entity.simuator.dao.ISimulatorSnacksBrandDAO;

public class SimulatorSnacksBrandDAOImpl extends PropertiesDAOImpl implements
ISimulatorSnacksBrandDAO {
	private static ISimulatorSnacksBrandDAO iSimulatorSnacksBrandDAO = null;
	
	private SimulatorSnacksBrandDAOImpl(String properties){
		try {
			init(properties);
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public static ISimulatorSnacksBrandDAO getSimulatorSnacksBrandDao(String properties) 
	throws IOException {
		if(iSimulatorSnacksBrandDAO == null) {
			iSimulatorSnacksBrandDAO = new SimulatorSnacksBrandDAOImpl(properties);
		}
		return iSimulatorSnacksBrandDAO;
	}

}
